package com.shop.handler;

import javafx.fxml.LoadException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * description: 该文件说明
 *
 * @author zhaoxiaozhao（xiaozhao.zhao@ucarinc.com）
 * @version 1.0
 * @date 2018/10/16 16:44
 **/
@ControllerAdvice
public class LoginHandler {

    @ExceptionHandler(value = LoadException.class)
    public ModelAndView loginExceptionHandler(){
        return new ModelAndView("redirect:/admin/login");
    }
}
